package com.zhiliao.demo1;

/**
 * 作者： zhi-liao
 * 类的作用: 懒汉式
 * 类的创建时间： 2021/5/23 10:34
 */
public class SingletonLazy {
    private static SingletonLazy singleton;

    private SingletonLazy() {
    }

    public static SingletonLazy getInstance() {
        if (singleton == null) {
            singleton = new SingletonLazy();
        }
        return singleton;
    }
}
